// 请求地址
const BASE = process.env.API_ROOT,
      SETSESSION_URL = `${BASE}/api/v1/user/`, //登录模块
      LOGIN_URL = `${BASE}/business/api/security/`, //登录模块
      TRANSPORT_URL = `${BASE}/api/v1/transport/`, //运单模块
      AUCTION_URL = `${BASE}/api/v1/auction/`, //竞价
      QUOTATUIN_URL = `${BASE}/api/v1/quotation/`, //确认报价
      DISPATCH_URL = `${BASE}/api/v1/dispatch/`, //调度
      TRAVELUSER_URL = `${BASE}/api/v1/travelUser/`, //车船管理
      DRIVER_URL = `${BASE}/api/v1/driverTransport/`, //司机
      COMPANY_URL = `${BASE}/api/v1/company/`, //公司
      RECEIPT_URL = `${BASE}/api/v1/receipt/`, //回单
      LINE_URL = `${BASE}/api/v1/line/`, //线路
      SETTLE_URL = `${BASE}/api/v1/settle/`, //结算
      TRACE_URL= `${BASE}/api/v1/trace/`,// 地图
      MESSAGE_URL= `${BASE}/api/v1/message/`,// 消息


      //设置session
      SETSSION = {
        setSession: `${SETSESSION_URL}setSession`,//session
        getSession: `${SETSESSION_URL}session`,//session
      },
      // 登录模块后台API接口
      LOGIN = {
        login: `${LOGIN_URL}login.do`,//登录
        listMenu : `${LOGIN_URL}listMenu.do`,//侧边栏
        load : `${LOGIN_URL}listMenu.do`,//侧边栏
      },
      // 登录模块后台API接口
      TRANSPORT = {
        load: `${TRANSPORT_URL}load`,//承运商运单列表
        detail: `${TRANSPORT_URL}detail`,//承运商运单详情
        arrived:`${TRANSPORT_URL}arrived`,//承运商运已送达
        waybills:`${TRANSPORT_URL}waybills`,//承运商状态数量
        getCountNum:`${TRANSPORT_URL}getCountNum`,//列表数量
      },
      // 竞价
      AUCTION = {
        load: `${AUCTION_URL}load`,//运单列表
      },
      //确认报价
      QUOTATUIN = {
        offer: `${QUOTATUIN_URL}offer`,//确认报价
        getQuotationInfo:`${QUOTATUIN_URL}getQuotationInfo`,//获取报价信息
      },
      //调度
      DISPATCH = {
        dispatchInfo: `${DISPATCH_URL}dispatchInfo`,//确认报价
        dispatchAdjustInfo: `${DISPATCH_URL}dispatchAdjustInfo`,//确认报价
        add: `${DISPATCH_URL}saveDispatch`,//确认报价
        adjust: `${DISPATCH_URL}saveAdjustDispatch`,//确认报价
      },
      //车船管理
      TRAVELUSER = {
        list: `${TRAVELUSER_URL}list`,//车船列表
        del: `${TRAVELUSER_URL}del`,//删除车船
        modify : `${TRAVELUSER_URL}modify`,//修改车船
        add : `${TRAVELUSER_URL}add`,//新增车船
      },
      //司机
      DRIVER = {
        load: `${DRIVER_URL}load`,//司机运单列表
        detail: `${DRIVER_URL}detail`,//司机运单详情
        delivered: `${DRIVER_URL}delivered`,//司机已送达
        waybills: `${DRIVER_URL}waybills`,//司机运单数量
      },
      COMPANY = {
        detail: `${COMPANY_URL}detail`,//公司信息页面
        edit:`${COMPANY_URL}appCysEdit`,//编辑公司信息
        add:`${COMPANY_URL}appCysAdd`,//新增公司信息
        isExist:`${COMPANY_URL}isExist`,//判断公司名称是否已存在
      },
      //回单
      RECEIPT = {
        appUpload : `${RECEIPT_URL}appUpload`,//app回单上传
        detail: `${RECEIPT_URL}detail`,//app回单详情页面
        tspDispatchDetail : `${RECEIPT_URL}tspDispatchDetail`,//回单调度详情
        dispatchCarrier : `${RECEIPT_URL}dispatchCarrier`,//司机回单调度详情
        confirm:`${RECEIPT_URL}stay/confirm`,
        deleteImage:`${RECEIPT_URL}remove`,
      }
      ,
      //线路
      LINE = {
        add: `${LINE_URL}add`,
        edit: `${LINE_URL}modify`,
        remove:`${LINE_URL}del`,
        load:`${LINE_URL}list`
      }
      ,
      SETTLE = {
        load:`${SETTLE_URL}settleList`,
        detail:`${SETTLE_URL}viewSettle`,
        viewInvoice:`${SETTLE_URL}viewInvoice`,//运费发票杂费发票图片
        uploadInvoce:`${SETTLE_URL}uploadInvoce`,//运费发票杂费发票图片
        invoicing:`${SETTLE_URL}invoicing`,//运费发票杂费发票图片
        waybills:`${SETTLE_URL}waybills`,//获取结算数量
      },
      TRACE = {
        getLatitudeLongitude: `${TRACE_URL}getLatitudeLongitude`,//app回单详情页面
        
      },
      MESSAGE = {
        load: `${MESSAGE_URL}load`,//消息
        setPush :`${MESSAGE_URL}setPush`,//设置消息
        setList :`${MESSAGE_URL}setList`,//消息列表

      }

// 导出模块
export default {
  LOGIN,
  AUCTION,
  TRANSPORT,
  QUOTATUIN,
  SETSSION,
  DISPATCH,
  TRAVELUSER,
  DRIVER,
  COMPANY,
  RECEIPT,
  LINE,
  SETTLE,
  TRACE,
  MESSAGE
}
